import { AppRegistry } from 'react-native';
import { gestureHandlerRootHOC } from 'react-native-gesture-handler';

import App from './App';
import { name as appName } from './app.json';
// 添加手势库
const AppWithGestureHandler = gestureHandlerRootHOC(App);

if (__DEV__) {
  // 使用 require 而不是 import 来加载 Reactotron 配置,因为会import会提升
  require('./ReactotronConfig');
}
AppRegistry.registerComponent(appName, () => AppWithGestureHandler);
